# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=syncthing-gtk
pkgver=0.9.4.5
pkgrel=2
pkgdesc="GTK3 based UI and notification area icon for Syncthing"
url="https://github.com/syncthing-gtk/syncthing-gtk"
arch="noarch"
license="GPL-2.0-or-later"
depends="
	gtk+3.0
	libnotify
	py3-bcrypt
	py3-cairo
	py3-dateutil
	py3-gobject3
	syncthing
	"
makedepends="py3-setuptools py3-gpep517"
checkdepends="pytest"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://github.com/syncthing-gtk/syncthing-gtk/archive/refs/tags/$pkgver/syncthing-gtk-$pkgver.tar.gz"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
25d3c111651c02a5d6d281ae04710b3c54f50d944cc1a72d3d94493e897b9bd432ae2e6dc782d7f0c17b12b3ba86ff30f8654bd46161a3a832d14e8c86c9cba7  syncthing-gtk-0.9.4.5.tar.gz
"
